package com.xuecheng.content.service;

import com.xuecheng.content.model.dto.SaveTeachPlanDto;
import com.xuecheng.content.model.dto.TeachplanDto;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * Date:2023/7/10
 * Author:丐版小杨哥
 * Description:
 */
public interface TeachplanService {
    /**
     * 查询章节目录的节点
     * @param id
     * @return
     */
    public List<TeachplanDto> getTreeNodes(Long id);

    /**
     * 增加/修改/章节
     * @param planDto
     */
    public void saveTeachPlan(@RequestBody SaveTeachPlanDto planDto);
}
